<template>
  <!-- 页面进度加载器 -->
  <div id="simple-preloader-background">
    <div id="preloader-background">
      <div class="loadingMain">
        <p class="loadingTitle">玩命加载中...</p>
        <div class="simple-preloader-line-container">
          <div id="simple-preloader-line">
            <div id="in-simple-preloader-line"></div>
          </div>
        </div>
        <p id="preloader-text">
          <span class="currentLoad">0%</span>&nbsp;<span>LOADING</span>
        </p>
      </div>
    </div>
  </div>
</template>

<script>
export default {};
</script>

<style lang="less" scoped>
#simple-preloader-background {
  background: #ececec;
  position: absolute;
  z-index: 99999;
  height: 100%;
  width: 100%;
  top: 0;
  #preloader-background {
    width: 100%;
    height: 100%;

    .loadingMain {
      position: absolute;
      left: 50%;
      top: 31.5%;
      transform: translate(-50%, 0) scale(0.8);
      color: #6a382f;
      text-align: center;

      .loadingTitle {
        font-weight: bold;
        font-size: 1.125rem;
        white-space: nowrap;
        letter-spacing: 0.03em;
      }

      #simple-preloader-line {
        position: relative;
        width: 150%;
        max-width: 80vw;
        min-width: 150px;
        left: 50%;
        transform: translateX(-50%);
        border-radius: 0.3125rem;
        border: 1px solid #6a382f;
        
        height: .625rem;
        margin: 45px 0 8px 0px;

        #in-simple-preloader-line {
          position: absolute;
          width: 0%;
          height:.5rem;
          background: #6a382f;
          
          border-radius: 0.3125rem;
          border: none;
          &::before {
            content: "";
            bottom: -2px;
            left: calc(100% - 20px);
            position: absolute;
            width: 40px;
            min-height: 45px;
            background-image: url(../images/snail.png);
            background-repeat: no-repeat;
            background-size: 100% auto;
            background-position: right bottom;
          }
        }
      }

      #preloader-text {
        padding-top: 0.3125rem;
        font-size: 0.875rem;
        font-weight: bold;
        .currentLoad {
          font-weight: bold;
          font-size: 1rem;
        }
      }
    }
  }
}
</style>